<template>
    <div class="container">
        <!-- 侧栏 -->
		<Sidebar/>
		<!-- 头部 -->
		<Header/>
        <div class="content Gwidth"> 
            <Breadcrumb separator=">">
                <BreadcrumbItem to="/">首页</BreadcrumbItem>
                <BreadcrumbItem to="/factory">某某家具</BreadcrumbItem>
                <BreadcrumbItem>客户案例</BreadcrumbItem>
            </Breadcrumb>
            <div class="goods_cont">
                <div class="right">
                    <h1 class="title">案例描述标题标题标题标题标题标题标题标题标题标题标题标题标题标题...</h1>
                    <div class="author">
                        <div class="logo">
                            <img src="" alt="">
                        </div>
                        <div class="title">北京凯威家具有限公司</div>
                    </div>
                    <div class="houses">
                        <div class="left">
                            <div class="title">
                                <span>房屋信息</span>
                            </div>
                            <div class="des">HOUSING INFORMATION</div>
                        </div>
                        <div class="right">
                            <span>户型：</span>
                            <span>风格：</span>
                            <span>风格：</span>
                            <span>户型：</span>
                            <span>风格：</span>
                        </div>
                    </div>
                    <div class="right_title">
                        案例展示
                    </div>
                    <div class="right_cont"></div>
                </div>
                <div class="left">
                    <div class="factory">
                        <div class="logo">
                            <img src="" alt="">
                        </div>
                        <div class="name">凯威家具简称</div>
                        <div class="number">
                            <span>已有</span>
                            <strong>4563</strong>
                            <span>人预约</span>
                        </div>
                        <div class="favorablerate">
                            <span>好评率</span>
                            <strong>100%</strong>
                        </div>
                        <div class="btn">
                            <Button type="error" @click="free_show=true">免费设计</Button>
                        </div>
                        <div class="topage">
                            <nuxt-link to="/factory">进入公司主页</nuxt-link>
                        </div>
                    </div>
                    <div class="hot">
                        <div class="hot_title">
                            热门推荐
                        </div>
                        <div class="hot_cont">
                            <div class="item">
                                <div class="img">
                                    <img src="" alt="">
                                </div>
                                <h2>精品老板椅沙发椅</h2>
                                <div class="colors">
                                    <span></span>
                                    <span></span>
                                    <span></span>
                                </div>
                            </div>
                            <div class="item">
                                <div class="img">
                                    <img src="" alt="">
                                </div>
                                <h2>精品老板椅沙发椅</h2>
                                <div class="colors">
                                    <span></span>
                                    <span></span>
                                    <span></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 免费设计 -->
		<FreeDesign :is_show="free_show" @onClose="onCloseFree" />
    </div>
</template>
<script>
import {mapState,mapMutations} from 'vuex'
import Header from "~/components/Header.vue"
import Sidebar from "~/components/Sidebar.vue"
import FreeDesign from "~/components/Free_design.vue"
export default {
    components: {
		Header,
		Sidebar,
        FreeDesign
	},
    data(){
        return{
            free_show:false,//是否展示免费设计弹窗
        }
    },
    created(){
        
    },
    computed:{
		...mapState(['address'])
	},
    mounted(){
        
    },
    methods:{
        onCloseFree(){
			this.free_show = false
		},
    },
}
</script>
<style scoped>
    .content{
        padding-top: 30px;
    }
    .content .goods_cont{
        margin-top: 30px;
        display: flex;
        justify-content: space-between;
    }
    .content .goods_cont .left{
        width: 300px;
    }
    .content .goods_cont .right{
        width:calc(100% - 338px);
    }
    .content .goods_cont .left .factory{
        width: 100%;
        height: 400px;
        text-align: center;
        border: 1px solid #EEEEEE;
        padding: 40px 20px 35px 20px;
    }
    .content .goods_cont .left .factory .logo,.content .goods_cont .left .factory .logo img{
        width: 100px;
        height: 100px;
        border-radius: 5px;
        margin: 0 auto;
    }
    .content .goods_cont .left .factory .name{
        font-size: 20px;
        font-weight: bold;
        color: #333333;
        margin-top:15px;
    }
    .content .goods_cont .left .factory .number{
        margin-top:15px;
        margin-bottom: 10px;
    }
    .content .goods_cont .left .factory .number span,.content .goods_cont .left .factory .favorablerate span{
        font-size: 16px;
        font-weight: 400;
        color: #666666;
    }
    .content .goods_cont .left .factory .btn button{
        width: 120px;
        height: 44px;
        background: #F30213;
        border-radius: 6px;
        margin-top: 30px;
    }
    .content .goods_cont .left .factory .topage{
        margin-top: 30px;
    }
    .content .goods_cont .left .factory .topage a{
        font-size: 16px;
        font-weight: 400;
        color: #666666;
    }
    .content .goods_cont .hot{
        margin-top: 50px;
    }
    .content .goods_cont .hot .hot_title{
        font-size: 20px;
        font-weight: 400;
        color: #333333;
        padding-bottom: 20px;
        border-bottom: 1px solid #eeeeee;
    }
    .content .goods_cont .hot .hot_cont .item{
        width: 275px;
        padding: 30px 0;
        border-bottom: 1px solid #eeeeee;
    }
    .content .goods_cont .hot .hot_cont .item:last-child{
        border-bottom: 0;
    }
    .content .goods_cont .hot .hot_cont .item .img,.content .goods_cont .hot .hot_cont .item img{
        width: 100%;
        height: 210px;
    }
    .content .goods_cont .hot .hot_cont .item h2{
        font-size: 16px;
        font-weight: 400;
        color: #333333;
        margin-top: 15px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .content .goods_cont .hot .hot_cont .item .colors span{
        display: inline-block;
        width: 12px;
        height: 12px;
        border: 1px solid #CCCCCC;
        border-radius: 50%;
    }
    .right_title{
        font-size: 20px;
        font-weight: 400;
        color: #333333;
        padding-bottom: 22px;
        border-bottom: 1px solid #eeeeee;
        margin-top: 50px;
    }
    .content .goods_cont .right h1.title{
        font-size: 26px;
        font-weight: 400;
        color: #333333;
    }
    .content .goods_cont .right .author{
        display: flex;
        align-items: center;
        margin-top: 30px;
    }
    .content .goods_cont .right .author .logo,.content .goods_cont .right .author .logo img{
        width: 36px;
        height: 36px;
        border-radius: 4px;
    }
    .content .goods_cont .right .author .title{
        font-size: 14px;
        font-weight: 400;
        color: #666666;
        margin-left: 6px;
    }
    .content .goods_cont .right .houses{
        display: flex;
        align-items: center;
        padding: 18px 0;
        background: #EEEEEE;
        border-radius: 6px;
        margin-top: 20px;
    }
    .content .goods_cont .right .houses .left{
        width: 226px;
        text-align: center;
        border-right: 1px solid #E3E3E3;
    }
    .content .goods_cont .right .houses .left .title span{
        font-size: 20px;
        font-weight: 400;
        color: #333333;
        background: url(~/static/image/ico/houses.png)left center no-repeat;
        background-size: 22px 22px;
        padding-left: 32px;
    }
    .content .goods_cont .right .houses .left .des{
        font-size: 12px;
        font-weight: 400;
        color: #D8D8D8;
        margin-top: 12px;
    }
    .content .goods_cont .right .houses .right{
        padding: 0 48px;
        width:calc( 100% - 226px);
    }
    .content .goods_cont .right .houses .right span{
        font-size: 14px;
        font-weight: 400;
        color: #666666;
        display: inline-block;
        margin-right: 50px;
        margin-bottom: 16px;
    }
</style>
